


class Array{
    public <E extends Comparable<E>> E findmax(E[]ar) {

        E max = ar[0];
        for (int i = 0; i < ar.length; i++) {
            if (max.compareTo(ar[i]) < 0) {
                max = ar[i];
            }
        }
        return max;
    }

    }

    public class Ttest {
        public static void main(String[] args) {
            Array array =new Array();

            Integer[] a={1,5,6,88,9,8,7,8,55,5};
            int M=array.<Integer>findmax(a);
            System.out.println(M);

        }
    }








